package com.cake.service.inter;

import java.util.List;
import java.util.Map;

import com.cake.base.util.ReturnUtils;
import com.cake.entity.XxBanner;
import com.cake.service.base.IBaseService;

public interface IXxBannerService extends IBaseService<XxBanner>{

	/**
	 * 查询所有的banner
	 * @return
	 */
	ReturnUtils selectBanners();
	
	/**
	 * 根据id查询banner详情
	 * @param bannerId
	 * @return
	 */
	ReturnUtils selectBannerById(Long bannerId);
	
	/**
	 * 修改banner及相应图片
	 * @return
	 * @throws Exception 
	 */
	ReturnUtils updateBannerAndBannerImage(XxBanner xxBanner) throws Exception;
		
	/**
	 * 获取商品基本信息
	 * @return
	 * @throws Exception 
	 */
	List<Map<String, Object>> selectProductBasicInfoForBanner() throws Exception;
	
	/**
	 * 获取商品分类基本信息
	 * @return
	 * @throws Exception 
	 */
	List<Map<String, Object>> selectProductCategoryBasicInfoForBanner() throws Exception;
	
}
